package main

import "fmt"

func main() {
	var map1 map[string]string = map[string]string{"tom": "13", "alice": "14", "petter": "15"}
	//使用for range循环，便利map和slice
	for k, v := range map1 {
		fmt.Println(k, "=", v)
	}

	//利用_变量忽略赋值，只遍历value
	for _, v := range map1 {
		fmt.Println(v)
	}

}
